package com.tjh;

import static com.tjh.limit.NotDivByZero.notDivByZero;
import static com.tjh.util.RandomLimitNum.*;
import static com.tjh.util.RandomNum.*;
import static com.tjh.util.RandomOpt.*;

/**
 * @Description : main run
 **/
public class Main {
    public static final int TOTAL_NUM = 30;
    public static void main(String[] args) {
        String opt = "";
        int num = 0;
        for(int i = 0; i < TOTAL_NUM; i++){
            System.out.print(randomNum());
            for(int j = 0; j < randomLimitNum(); j++){
                opt = randomOpt();
                num = randomNum();

                if("/".equals(opt)){
                    num = notDivByZero(num);
                }

                System.out.print(opt);
                System.out.print(num);
            }
            System.out.println("=");
        }
    }
}
